package com.shun

import com.shun.entity.User
import org.junit.Test
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.data.mongodb.core.MongoTemplate
import org.springframework.test.context.junit4.SpringRunner

@RunWith(SpringRunner::class)
@SpringBootTest
class ManageServerApplicationTests {

    @Test
    fun contextLoads() {
    }

    @Autowired
    private lateinit var mongoTemplate: MongoTemplate

    @Test
    fun create() {
//       val user = User("系统管理员", "admin", "xtgly,xitongguanliyuan,系统管理员")
//        user.uuid="61fd987d-2c1f-433a-a5d7-1638c62cc246"
//       mongoTemplate.insert(user)


    }

}
